package com.six.biz;

import java.io.IOException;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.six.vo.Customer;

/**
 * ICustomerManagementBiz 客户管理
 * 
 */
//@Transactional(propagation=Propagation.REQUIRED)
public interface ICustomerManagementBiz {
	/**
	 * 	保存客户，客户开户,开户成功后，由系统短信平台给客户发送一条短信，短信内容为相关	账户信息
	 * 
	 */
	public void saveCustomer(Customer c)throws 
	IOException, InterruptedException;
//	public void saveCustomer(Customer c)throws TimeoutException, GatewayException,
//	SMSLibException, IOException, InterruptedException;
	/**
	 * 更新客户信息
	 * 
	 */
	public void updateCustomer(Customer c);
	/**
	 * 删除客户，将客户状态置为【删除】状态
	 * 
	 */
	public void deleteCustomer(int cid)throws Exception;
	/**
	 * 根据客户 id 查询客户
	 * 
	 */
	@Transactional(readOnly=true)
	public Customer findCustomerById(int cid);
	/**
	 * 恢复客户，将客户状态置为【活动】状态
	 * 
	 */
	public void revertCustomer(int cid)throws Exception;
	/**
	 * 根据制定条件查询客户信息
	 * 
	 */
	@Transactional(readOnly=true)
	public List<Customer> findCustomers(int cid,String cname,int cicid);
	/**
	 * 根据输入条件模糊查询客户信息
	 * 
	 */
	@Transactional(readOnly=true)
	public List<Customer> findCustomerByInputValue(String inputValue);

}
